package com.daJiao.domain;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * <p>Title:	  分页参数 <br/> </p>
 * <p>Description PageParam <br/> </p>
 * <p>Company:    医百科技有限公司  <br/> </p>
 *
 * @Author <a href="xinglinglove1029@163.com"/>杨文生</a>  <br/>
 * @Date 2020/10/26 13:39
 */
@Data
public class PageParam<T> implements Serializable {

    private static final long serialVersionUID = -1876277201839956410L;

    @ApiModelProperty("页数")
    @NotNull(message = "页数不能为空" )
    private int pageNum = 1;

    @ApiModelProperty("页大小")
    @NotNull( message = "页大小不能为空")
    private int pageSize = 20;

    @ApiModelProperty("请求参数")
    @NotNull( message = "请求参数不能为空" )
    private T param;

}
